﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="FrmSocioNegocio.aspx.cs" Inherits="UI.Tesoreria.FrmSocioNegocio" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">


        .style4
        {
            /*background: url(Administration/Images/Grey/captionbckg.gif) repeat-x;*/
        background: #f9f9f9 url('../Imagenes/grey/captionbckg.gif') repeat-x;
            color: #333333;
            text-align: left;
            line-height: 16px;
            font-size: 11px;
            font-weight: bold;
            padding-top: 4px;
            padding-left: 4px;
            font-family: tahoma,arial,verdana,sans-serif;
            height: 23px;
        }
         .styleCOntrolIngreso
        {
            width: 60px;
            height: 26px;
        }
        .style33
        {
            width: 11px;
            height: 26px;
        }
        .style32
        {
            width: 12px;
            height: 26px;
        }
        .botoncito
        {
            height: 26px;
        }
        .style34
        {
            width: 778px;
        }
                                
        .styleLabel
        {
            width: 10px;
            height: 26px;
        }
                         
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<asp:UpdatePanel ID="panelActualizar" runat="server">
    <Triggers>
        <asp:PostBackTrigger ControlID="GridSocioNegocios"/>
    </Triggers>
    <ContentTemplate>
    <table dir="ltr" frame="box">
        <tr>
            <td  class="style4" colspan="7">
                            FILTROS</td>
        </tr>
        <tr>
            <td >
                <asp:Label ID="Label1" runat="server" Text="Codigo"></asp:Label>
            </td>
            <td class="styleCOntrolIngreso">
                <asp:TextBox ID="txtCodigoFiltro" runat="server" Height="16px" Width="89px"></asp:TextBox>
            </td>
            <td class="style33">
            </td>
            <td class="styleCOntrolIngreso">
                <asp:Label ID="Label2" runat="server" Text="Nombre"></asp:Label>
            </td>
            <td class="styleCOntrolIngreso">
                <asp:TextBox ID="txtNombreFiltro" runat="server" Height="18px" Width="234px"></asp:TextBox>
            </td>
            <td class="style32">
            </td>
            <td class="styleCOntrolIngreso">
                <asp:Button ID="BtnBuscar" runat="server" CssClass="botoncito" Text="Buscar" 
                    onclick="BtnBuscar_Click"/>
            </td>
        </tr>
    </table>
        <table style="width: 533px" >
            <tr>
                <td class="style34" >
                    <asp:Label ID="LabelErrorListado" runat="server" ForeColor="#FF0066"></asp:Label>
                    </td>
                <td >
                    <asp:Button ID="btnNuevo" runat="server" Height="32px" 
                        Text="Nuevo" Width="88px" onclick="btnNuevo_Click1" />
                </td>
            </tr>
        </table>

       

        <asp:GridView ID="GridSocioNegocios" runat="server" 
            AutoGenerateColumns="False" Width="537px" DataKeyNames="id" 
            onrowcommand="GridSocioNegocios_RowCommand" 
            onselectedindexchanged="GridSocioNegocios_SelectedIndexChanged">
            <Columns>
                <asp:BoundField DataField="id" HeaderText="ID" Visible="False" />
                <asp:BoundField DataField="Codigo" HeaderText="Codigo" />
                <asp:BoundField DataField="Nombre" HeaderText="Nombre" />
                <asp:BoundField DataField="Area" HeaderText="Area" />


                <asp:TemplateField>
                <ItemTemplate>
                    <asp:LinkButton ID="modificar" Runat="server" 
                    CommandName="Modificar">
                    Modificar
                    </asp:LinkButton>
                </ItemTemplate>
                </asp:TemplateField> 

                <asp:TemplateField>
                <ItemTemplate>
                    <asp:LinkButton ID="eliminar" Runat="server" 
                    OnClientClick="return confirm('¿Desea eliminar el registro?');" 
                        CommandName="Eliminar">
                    Eliminar
                    </asp:LinkButton>
                </ItemTemplate>
                </asp:TemplateField> 

            </Columns>
        </asp:GridView>
        <br />

         </ContentTemplate>
</asp:UpdatePanel>


    

    <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="panelActualizar" DisplayAfter="0">
    <ProgressTemplate>
        <div style="background-color: Gray; filter:alpha(opacity=60); opacity:0.60; width: 100%; top: 0px; left: 0px; position: fixed; height: 100%;">
        </div>
          <div style="margin:auto;
              font-family:Trebuchet MS;
              filter: alpha(opacity=100);
              opacity: 1;
              font-size:small;
              vertical-align: middle;
              top: 45%;
              position: fixed;
              right: 45%;
              color: #275721;
              text-align: center;
              background-color: White;
              height: 100px; bottom: 296px;">
                <table style=" background-color: White; font-family: Sans-Serif; text-align: center; border: solid 1px #275721; color: #275721; width: inherit; height: inherit; padding: 15px;">
                <tr>
                <td style=" text-align: inherit;"><img src="../Imagenes/Gif/cargando.gif" alt="Loading"  /></td>
                <td style=" text-align: inherit;"><span style="font-family: Sans-Serif; font-size: medium; font-weight: bold; font">Cargando...</span></td>
                </tr>
                </table>
        </div>
    </ProgressTemplate>
    </asp:UpdateProgress>


    </asp:Content>
